<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增区块信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-blockinfo-add"  th:object="${blockinfo}">
		
           <!--头区块编号-->
           <input id="tqkid" name="tqkid" th:field="*{tqkid}" type="hidden"> 

           <!--头前块哈希-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->头前块哈希</label>
                <div class="col-sm-8">
                    <input id="tqkhx" name="tqkhx" th:field="*{tqkhx}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--头数据哈希-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->头数据哈希</label>
                <div class="col-sm-8">
                    <input id="tsjhx" name="tsjhx" th:field="*{tsjhx}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--头未知字段-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->头未知字段</label>
                <div class="col-sm-8">
                    <input id="twzzd" name="twzzd" th:field="*{twzzd}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--头存储初始化-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->头存储初始化</label>
                <div class="col-sm-8">
                    <input id="tcccs" name="tcccs" th:field="*{tcccs}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--头存储大小-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->头存储大小</label>
                <div class="col-sm-8">
                    <input id="tccdx" name="tccdx" th:field="*{tccdx}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--头存储哈希-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->头存储哈希</label>
                <div class="col-sm-8">
                    <input id="tcchx" name="tcchx" th:field="*{tcchx}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--数据内容-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->数据内容</label>
                <div class="col-sm-8">
                    <input id="sjnr" name="sjnr" th:field="*{sjnr}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--数据存储初始化-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->数据存储初始化</label>
                <div class="col-sm-8">
                    <input id="sjcccs" name="sjcccs" th:field="*{sjcccs}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--数据未知字段-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->数据未知字段</label>
                <div class="col-sm-8">
                    <input id="sjwzzd" name="sjwzzd" th:field="*{sjwzzd}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--数据存储大小-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->数据存储大小</label>
                <div class="col-sm-8">
                    <input id="sjccdx" name="sjccdx" th:field="*{sjccdx}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--数据存储哈希-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->数据存储哈希</label>
                <div class="col-sm-8">
                    <input id="sjcchx" name="sjcchx" th:field="*{sjcchx}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--元数据内容-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->元数据内容</label>
                <div class="col-sm-8">
                    <input id="ysjnr" name="ysjnr" th:field="*{ysjnr}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--元数据存储初始化-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->元数据存储初始化</label>
                <div class="col-sm-8">
                    <input id="ysjcccs" name="ysjcccs" th:field="*{ysjcccs}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--元数据未知字段-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->元数据未知字段</label>
                <div class="col-sm-8">
                    <input id="ysjwzzd" name="ysjwzzd" th:field="*{ysjwzzd}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--元数据存储大小-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->元数据存储大小</label>
                <div class="col-sm-8">
                    <input id="ysjccdx" name="ysjccdx" th:field="*{ysjccdx}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--元数据存储哈希-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->元数据存储哈希</label>
                <div class="col-sm-8">
                    <input id="ysscchx" name="ysscchx" th:field="*{ysscchx}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--过滤块-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->过滤块</label>
                <div class="col-sm-8">
                    <input id="glk" name="glk" th:field="*{glk}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--交易次数-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->交易次数</label>
                <div class="col-sm-8">
                    <input id="jjcs" name="jjcs" th:field="*{jjcs}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--区块说明-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->区块说明</label>
                <div class="col-sm-8">
                    <input id="qksm" name="qksm" th:field="*{qksm}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项00-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项00</label>
                <div class="col-sm-8">
                    <input id="bz00"  name="bz00" th:field="*{bz00}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项01-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项01</label>
                <div class="col-sm-8">
                    <input id="bz01"  name="bz01" th:field="*{bz01}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项02-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项02</label>
                <div class="col-sm-8">
                    <input id="bz02"  name="bz02" th:field="*{bz02}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项03-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项03</label>
                <div class="col-sm-8">
                    <input id="bz03"  name="bz03" th:field="*{bz03}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项04-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项04</label>
                <div class="col-sm-8">
                    <input id="bz04"  name="bz04" th:field="*{bz04}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项05-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项05</label>
                <div class="col-sm-8">
                    <input id="bz05"  name="bz05" th:field="*{bz05}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项06-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项06</label>
                <div class="col-sm-8">
                    <input id="bz06"  name="bz06" th:field="*{bz06}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项07-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项07</label>
                <div class="col-sm-8">
                    <input id="bz07"  name="bz07" th:field="*{bz07}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项08-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项08</label>
                <div class="col-sm-8">
                    <input id="bz08"  name="bz08" th:field="*{bz08}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项09-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项09</label>
                <div class="col-sm-8">
                    <input id="bz09"  name="bz09" th:field="*{bz09}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项10-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项10</label>
                <div class="col-sm-8">
                    <input id="bz10"  name="bz10" th:field="*{bz10}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项11-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项11</label>
                <div class="col-sm-8">
                    <input id="bz11"  name="bz11" th:field="*{bz11}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项12-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项12</label>
                <div class="col-sm-8">
                    <input id="bz12"  name="bz12" th:field="*{bz12}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项13-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项13</label>
                <div class="col-sm-8">
                    <input id="bz13"  name="bz13" th:field="*{bz13}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项14-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项14</label>
                <div class="col-sm-8">
                    <input id="bz14"  name="bz14" th:field="*{bz14}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项15-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项15</label>
                <div class="col-sm-8">
                    <input id="bz15"  name="bz15" th:field="*{bz15}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项16-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项16</label>
                <div class="col-sm-8">
                    <input id="bz16"  name="bz16" th:field="*{bz16}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项17-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项17</label>
                <div class="col-sm-8">
                    <input id="bz17"  name="bz17" th:field="*{bz17}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项18-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项18</label>
                <div class="col-sm-8">
                    <input id="bz18"  name="bz18" th:field="*{bz18}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项19-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项19</label>
                <div class="col-sm-8">
                    <input id="bz19"  name="bz19" th:field="*{bz19}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>


             
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "blockchain/blockinfo"
        $("#form-blockinfo-add").validate({
            focusCleanup: true
        });

        //初始化赋值
        initValue();

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-blockinfo-add').serialize());
            }
        }
        //初始化赋值
        function initValue(){
            // $('#tqkid').val(''); //头区块编号
            // $('#tqkhx').val(''); //头前块哈希
            // $('#tsjhx').val(''); //头数据哈希
            // $('#twzzd').val(''); //头未知字段
            // $('#tcccs').val(''); //头存储初始化
            // $('#tccdx').val(''); //头存储大小
            // $('#tcchx').val(''); //头存储哈希
            // $('#sjnr').val(''); //数据内容
            // $('#sjcccs').val(''); //数据存储初始化
            // $('#sjwzzd').val(''); //数据未知字段
            // $('#sjccdx').val(''); //数据存储大小
            // $('#sjcchx').val(''); //数据存储哈希
            // $('#ysjnr').val(''); //元数据内容
            // $('#ysjcccs').val(''); //元数据存储初始化
            // $('#ysjwzzd').val(''); //元数据未知字段
            // $('#ysjccdx').val(''); //元数据存储大小
            // $('#ysscchx').val(''); //元数据存储哈希
            // $('#glk').val(''); //过滤块
            // $('#jjcs').val(''); //交易次数
            // $('#qksm').val(''); //区块说明
            // $('#bz00').val(''); //备注项00
            // $('#bz01').val(''); //备注项01
            // $('#bz02').val(''); //备注项02
            // $('#bz03').val(''); //备注项03
            // $('#bz04').val(''); //备注项04
            // $('#bz05').val(''); //备注项05
            // $('#bz06').val(''); //备注项06
            // $('#bz07').val(''); //备注项07
            // $('#bz08').val(''); //备注项08
            // $('#bz09').val(''); //备注项09
            // $('#bz10').val(''); //备注项10
            // $('#bz11').val(''); //备注项11
            // $('#bz12').val(''); //备注项12
            // $('#bz13').val(''); //备注项13
            // $('#bz14').val(''); //备注项14
            // $('#bz15').val(''); //备注项15
            // $('#bz16').val(''); //备注项16
            // $('#bz17').val(''); //备注项17
            // $('#bz18').val(''); //备注项18
            // $('#bz19').val(''); //备注项19

        }
    </script>
</body>
</html>
